* {
    margin: 0 auto;
}

.box {
    background-color: royalblue;
    width: 100px;
    height: 100px;
    position: absolute;
}